﻿using Shop.Model.Attr;
using Shop.Repository;

namespace Shop.Collect.lmpl
{
    internal class GoodsAttrCollect : IGoodsAttrCollect
    {
        private readonly IGoodsAttrRepository _Repository;

        public GoodsAttrCollect (IGoodsAttrRepository repository)
        {
            this._Repository = repository;
        }
        public GoodsAttrDto[] GetsBySkuId (long skuId)
        {
            return this._Repository.GetsBySkuId(skuId);
        }
        public GoodsAttrDto[] Gets (long goodsId)
        {
            return this._Repository.Gets(goodsId);
        }
    }
}
